package com.hong.demo.other.fsm.impl;

import com.hong.demo.other.fsm.inf.IFSMState;

/**
 * 状态定义
 */
public enum OrderState implements IFSMState {
    WAIT_PAY(1, "待支付"),
    PAYED(2, "已支付"),
    Refund(3, "退款"),
    ReturnGoods(4, "退款");

    public int code;
    public String name;

    OrderState(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
